package com.bjpowernode.boss.mvc.service;

import com.bjpowernode.boss.mvc.models.dto.operator.LoginResponseDto;
import com.bjpowernode.boss.mvc.models.form.operator.LoginForm;
import com.bjpowernode.boss.mvc.models.menus.SubMenu;

import java.util.List;


public interface OperatorService {

    /**
     * 操作员登录
     * @param loginForm 登录的名称和密码
     * @return  jwt和showName
     */
    LoginResponseDto operatorLogin(LoginForm loginForm);

    /**
     * 获取登录用户的菜单列表
     * @param operatorId
     * @return
     */
    List<SubMenu> getMenusByLoginUser(Long operatorId);
}
